package com.credithc.signature.core.util;

import com.credithc.signature.core.ro.FddConfigRO;

/**
 * @author zhanghanqiu181212@credithc.com
 * @Date 2020/9/15 10:39
 */
public class GlobalVarManager {

    private static ThreadLocal<FddConfigRO> globalVars = new ThreadLocal<>();

    public static FddConfigRO getGlobalVars() {
        return globalVars.get();
    }

    public static void setGlobalVars(FddConfigRO conn) {
        globalVars.set(conn);
    }

    public static void remove() {
        globalVars.remove();
    }
}
